{% extends "./views/default.html" %}
{% block content %}


<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  <legend>问卷信息</legend>
</fieldset>

<div class="layui-form" id="list">
  <table class="layui-table">
    <colgroup>
      <col width="190">
      <col width="210">
      <col width="230">
      <col width="250">

      <col>
    </colgroup>
    <thead>
      <tr>
        <th>序列</th>
        <th>标题</th>
        <th>创建时间</th>
        <th>状态</th>
        <th>编辑</th>
      </tr>
    </thead>
    <tbody>

      {% for con in cons %}

      <tr>
        <td>{{con.id}}</td>
        <td>{{con.title}}</td>
        <td>{{con.time}}</td>
        <td>已发布</td>
        <td>
          <a href="/questioncount"> <button type="button" class="btn btn-secondary btn-sm"
            onclick="getcount('{{con.id}}')" >统计</button> </a>
          <a href="/droprow"> <button type="button" class="btn btn-secondary btn-sm"
            style="margin-left: 25px;"  onclick="commit('{{con.id}}')">删除</button>
          </a>
          <a href="/questiondetail"> <button type="button" class="btn btn-secondary btn-sm"
            style="margin-left: 25px;"  onclick="getdetail('{{con.id}}')">详情</button> </a>

        </td>
      </tr>

      {% endfor %}


    </tbody>
  </table>
</div>

{% endblock %}